import React from 'react'
import { Layout } from 'antd'

import SiderMenu from '../../components/userIndex/SiderMenu'
import TopHeader from '../../components/userIndex/TopHeader'
import { Outlet } from 'react-router-dom'


// 用户首页
export default function Index () {



  return (

    <Layout style={{ minHeight: '100vh', }} >
      <SiderMenu />

      <Layout className="site-layout" theme="light">
        {/* header组件 */}
        <TopHeader />
        {/* content组件 ,此处的outlet是预留的位置，让路由跳转的组件放到这里*/}
        <Outlet></Outlet>
      </Layout>

    </Layout>



  )
}
